function main(params) {
    // NORMAL 普通状态
    // HIDDEN 隐藏状态
    // DISABLED 禁用状态
    debugger;
    var appointmentStateName = params && params.appointment_state_type_name && params.appointment_state_type_name.value;
    var verifyStateName = params && params.verify_state_name && params.verify_state_name.value;
    var behavior = "HIDDEN";
    var buttonTitle = '';

    if (verifyStateName === '已撤销' || verifyStateName === '已过期') {
        behavior = "HIDDEN";
    } else if (verifyStateName === '审核通过') {
        buttonTitle = '取消预约';
        behavior = "NORMAL";
    } else if (verifyStateName === '审核不通过') {
        buttonTitle = '查看详情';
        behavior = "NORMAL";
    } else if (verifyStateName === '待审核') {
        buttonTitle = appointmentStateName === '取消预约申请'
            ? '撤销取消预约'
            : '撤销预约';
        behavior = "NORMAL";
    }

    // 设置按钮标题
    if (buttonTitle) {
        // 优先尝试直接设置
        if (this._props && this._props.button) {
            this._props.button.title = buttonTitle;
        }

        // 备用方案：通过子组件设置
        var child1 = this.$children && this.$children[0];
        var child2 = child1 && child1.$children && child1.$children[0];
        var child3 = child2 && child2.$children && child2.$children[0];
        var childProps = child3 && child3._props;
        var childButton = childProps && childProps.button;

        if (childButton) {
            this.buttons[0].props.operateItem.title = buttonTitle;
            console.log(this);
        }
    }
    return behavior;
}
